package com.netty.swagger;

import com.cx.item.common.swagger.Swagger2ConfigAbstract;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2 // 开启swagger
public class MySwagger2Config extends Swagger2ConfigAbstract {

//    @Override
//    protected List<Parameter> buildHeaderParam() {
//        List<Parameter> pars = new ArrayList<>();
//        ParameterBuilder tokenPar = new ParameterBuilder();
//        tokenPar.name("userToken").description("用户身份token").modelRef(new ModelRef("string")).parameterType("header").required(false).build();
//        pars.add(tokenPar.build());
//
//        return pars;
//    }
}
